<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <!-- 创建dmo根节点，一个页面中需要有一个根节点，这个节点下的内容会被react管理 -->
    <div id="demoReact"></div>
</body>
<script src="../../node_modules/react/umd/react.development.js"></script>
<script src="../../node_modules/react-dom/umd/react-dom.development.js"></script>
<script src="../../node_modules/babel-standalone/babel.min.js"></script>
<script type="text/babel">
    let myDom = <section><h1>你好世界</h1><p>这个世界很美妙</p></section>;
    let root = ReactDOM.createRoot(document.getElementById("demoReact"));
    root.render(myDom);
</script>

</html>